﻿using AnesSystem.Models;
using AnesSystem.Services;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AnesSystem.ViewModels
{
    class ConfigContainersDataGridViewModel : BaseViewModel<ConfigContainersDataGridViewModel>
    {

        #region Variables

        private ObservableCollection<ConfigContainersModel> _configContainersModels = new ObservableCollection<ConfigContainersModel>();

        #endregion

        #region Constructor

        public ConfigContainersDataGridViewModel()
        {
            initConfigContainersModel();
        }

        #endregion

        #region Properties

        public ObservableCollection<ConfigContainersModel> ConfigContainersModel
        {
            get
            {
                return _configContainersModels;
            }

            set
            {
                _configContainersModels = value;
                RaisePropertyChanged("ConfigContainersModel");
            }
        }

        #endregion

        #region Event

        #endregion

        #region Private Methods
        private void initConfigContainersModel()
        {
            IEnumerable<ConfigContainersModel> list = ConfigContainersModelService.Instance.FindAll();
            foreach (var item in list)
            {
                _configContainersModels.Add(item);
            }
        }

       
        #endregion
        #region Public/Protected Methods


        #endregion

        #region EventHandlers

        #endregion

        #region Command

        #region ChangeDoctorCommand

        #endregion

        #region OpenPopupCommand

        #endregion
        #endregion
    }
}
